package org.desktop.web.client.custom.widget;

import com.google.gwt.event.logical.shared.SelectionEvent;
import com.google.gwt.event.logical.shared.SelectionHandler;
import com.sencha.gxt.widget.core.client.Window;
import com.sencha.gxt.widget.core.client.menu.Item;
import com.sencha.gxt.widget.core.client.menu.Menu;
import com.sencha.gxt.widget.core.client.menu.MenuItem;

public class FolderMenu extends Menu {

	private DesktopFolder folder;

	public FolderMenu(final DesktopFolder folder) {
		super();
		this.folder=folder;
		addSelectionHandler(new SelectionHandler<Item>() {
			
			@Override
			public void onSelection(SelectionEvent<Item> event) {
				folder.openFolder();
				
			}
		});
		MenuItem openItem = new MenuItem("Open");
		add(openItem);
		// TODO Auto-generated constructor stub
	}

	
}
